package com.leven.easyerp.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

/**
 * 用户
 * 
 * @author Leven.Chen
 */
@Entity
@Table(name = "ee_user_info")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class User {
	@Id
	@GenericGenerator(name = "generator", strategy = "org.hibernate.id.UUIDGenerator")
	@GeneratedValue(generator = "generator")
	@Column(name = "F_ID", unique = true, nullable = false, length = 32)
	private String id;
	@Column(name = "f_username", unique = true, length = 50)
	private String username;
	@Column(name = "f_alias", length = 100)
	private String alias;
	@Column(name = "f_password", length = 50)
	private String password;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
